package com.bjpowernode.api.service;

import com.bjpowernode.api.model.RechargeRecord;
import com.bjpowernode.api.vo.RechargeInfo;

import java.util.List;

/**
 * @description:
 * @author: panDeng_Zhu
 * @time: 2022/11/19 13:15
 */


public interface RechargeService {

    /**
     * 查询用户最近充值记录，分页查询
     * @param userId
     * @param pageNo
     * @param pageSize
     * @return
     */
    List<RechargeInfo> queryUserRechargeByUserId(Integer userId, Integer pageNo, Integer pageSize);

    /**
     * 创建充值记录
     * @param record
     * @return
     */
    int addRecharge(RechargeRecord record);

    /**
     * 处理充值
     * @param kq
     * @param orderId
     * @param payResult
     * @param payAmount
     * @return
     */
    int handlerRecharge(String kq, String orderId, String payResult, String payAmount);

}
